package com.nb.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Table;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 用户角色关联表 实体类。
 *
 * @author easy-query-plugin automatic generation
 * @since 1.0
 */
@Data
@Table(value = "sys_role_user",dataSource = "primaryDS")
public class RoleUser {

    /**
     * 用户ID
     */
    @Column(value = "user_id")
    private Long userId;

    /**
     * 角色ID
     */
    @Column(value = "role_id")
    private Long roleId;

    /**
     * 创建时间
     */
    @Column
    private LocalDateTime createdTime;


}
